package com.chen.decorator;

public class Decorator2 extends Decorator {

    public Decorator2(Component component) {
        super(component);
    }

    @Override
    public void doSomething() {
        super.doSomething();
        this.doAnotherthing();
    }

    public void doAnotherthing(){
        System.out.println("功能C");
    }

}
